package com.zcxy.fast.mybatisExtend.anotation;

import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

@Target({METHOD, FIELD})
@Retention(RUNTIME)
public @interface OneToOne {

    /**
     * 标记基础的数据库的entity,不传取当前属性的泛型类
     */
    Class<?> targetEntity() default void.class;

}
